package com.hands.commen.entity.netty;

import io.netty.channel.ChannelHandlerContext;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Us implements Serializable {

	@Override
	public String toString() {
		return "Us [user=" + user + ", mac=" + mac + ", ctx=" + ctx + ", timeout=" + timeout + ", token=" + token
				+ ", errortime=" + errortime + ", os=" + os + ", hearttime=" + hearttime + "]";
	}
	public String user;
    public String mac;
    
    public ChannelHandlerContext ctx;
    public long timeout;
    public String token = "";
    public int errortime = 0;
    public int os = 2;
    public Date hearttime ;
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getMac() {
		return mac;
	}
	public void setMac(String mac) {
		this.mac = mac;
	}
	public ChannelHandlerContext getCtx() {
		return ctx;
	}
	public void setCtx(ChannelHandlerContext ctx) {
		this.ctx = ctx;
	}
	public long getTimeout() {
		return timeout;
	}
	public void setTimeout(long timeout) {
		this.timeout = timeout;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public int getErrortime() {
		return errortime;
	}
	public void setErrortime(int errortime) {
		this.errortime = errortime;
	}
	public int getOs() {
		return os;
	}
	public void setOs(int os) {
		this.os = os;
	}
	public Date getHearttime() {
		return hearttime;
	}
	public void setHearttime(Date hearttime) {
		this.hearttime = hearttime;
	}
    
    
    
    
    
}
